package com.myoffice.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TRolerigth entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_ROLERIGTH", schema = "OA")
public class TRolerigth implements java.io.Serializable {

	// Fields

	private String id;
	private TRoleinfo TRoleinfo;
	private String sysfunid;

	// Constructors

	/** default constructor */
	public TRolerigth() {
	}

	/** full constructor */
	public TRolerigth(String id, TRoleinfo TRoleinfo, String sysfunid) {
		this.id = id;
		this.TRoleinfo = TRoleinfo;
		this.sysfunid = sysfunid;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ROLEINFOID", nullable = false)
	public TRoleinfo getTRoleinfo() {
		return this.TRoleinfo;
	}

	public void setTRoleinfo(TRoleinfo TRoleinfo) {
		this.TRoleinfo = TRoleinfo;
	}

	@Column(name = "SYSFUNID", nullable = false)
	public String getSysfunid() {
		return this.sysfunid;
	}

	public void setSysfunid(String sysfunid) {
		this.sysfunid = sysfunid;
	}

}